	    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link type="text/css" href="/res/app/admin/css/common.css" rel="stylesheet" />
<script type="text/javascript" src="/res/js/lib/jquery.js"></script>
<script type="text/javascript" src="/res/frame/js/t_thickbox.js"></script>
<title>展示所有的表</title>
<script>
 /**
  *显示单表的详细信息 
  */
   function show_table(name){
      $.ajax({
  	       url:'/admin/a-table/descTable?sys_ajax=1',
  	       method:'post',
  	       data:'table='+name+'&cache='+Math.random(),
  	       dataType:'text',
  	       success:function(json){
    	      open_thickbox(json,600,800);
	       }

          });
	    
   }

   /**
    * 显示单表的缓存信息
    */
   function show_cache(name){
	      $.ajax({
	           url:'/admin/a-table/getTableMemcache?sys_ajax=1',
	           method:'post',
	           data:'table='+name+'&cache='+Math.random(),
	           dataType:'text',
	           success:function(json){
	              open_thickbox(json);
	           }

	          });
	        
	}

</script>
</head>
<body>
    
<div >您当前所在的位置：<span >表管理</span>
</div>
<div class="clr"></div>

        <!--     演示foreach如何使用      -->

        <div class="mt10">
          <table id="ffc" cellpadding="0" cellspacing="0" class="t_stpi mb10" style= "table-layout:fixed ">
            <tr>
              <th width="50">Name</th>
              <th width="50">Engine</th>
              <th width="50">Auto_increment</th>
              <th width="50">Rows</th>
              <th width="50">Collation</th>
              <th width="50">Comment</th>
              <th width="80">表字段详情</th>
              <th width="150">表日志</th>
              <th width="350">缓存管理</th>
            </tr>
            <!-- FOREACH tables -->
            <tr>
                                        
              <td id ="" align="center">{Name}</td>
              <td id ="" align="center">{Engine}</td>
              <td id ="" align="center">{Auto_increment}</td>
              <td id ="" align="center">{Rows}</td>
              <td id ="" align="center">{Collation}</td>
              <td id ="" align="center">{Comment}</td>
              
              <td id ="" align="center"><input type="button" onclick="show_table('{Name}');" value="点击查看" /></td>
              <td id ="" align="center">{Name}</td>
              <td id ="" align="center">
                <input type="button" onclick="show_cache('{Name}')" value="点击查看"/>
              </td> 
            </tr>
            <!-- END --> 
          </table>          
          <div align="center">{pager}</div>          
        </div>
        
        <!--     演示foreach如何使用      -->
        <table id="ffc" cellpadding="0" cellspacing="0" class="t_stpi mb10" style= "table-layout:fixed ">
            <tr>
              <!-- FOREACH tables.0 -->
              <th width="50">{ROWKEY}</th>
              <!-- END -->
            </tr>
            <!-- FOREACH tables -->
            <tr>
                       <!-- FOREACH ROWVALUE -->                 
              <td id ="" align="center">{ROWVALUE}</td>
                      <!-- END -->
              
            </tr>
            <!-- END --> 
          </table> 
       
</body>
</html>
	    